home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
system
/
bbsctrl.zip
/
BBSCTRL.TXT
< prev
Wrap
Text File
|
1993-10-25
|
5KB
|
126 lines
BBSctrl version 1.01. (c)1993 Jordi Mas.
Serial port supervisor for DESQview environment
Introduction
------------
BBSctrl is an utility created to add stability to BBSs that are running under
DESQview, DESQview-386 or DESQview/X environments. BBSctrl can recover from
crashes in these environment due to:
* Exceptions inside of DESQview windows (the must common are 12 and 13)
* Utilities errors or abnormal termination of programs running inside of
DESQview, such as "run time error" or "abnormal termination", that is to say,
application errors.
* Error of comparing files on multi-line systems, where DESQview uses its own
error controller y keeps waiting for an answer.
* Hard crashes of tasks. Thanks to the task protection system that DESQview
uses, it may crash on one task but not on the others.
BBSctrl watches the serial ports that we the him, were it is suppose to be
a modem waiting for calls. If in certain period of time that we setup there
is no carrier, BBSctrl will make a reset or exit to DOS with an errorlevel.
On multi-line systems, if BBSctrl does not detect carrier during a certain
period of time on one line, before resets or exits with an errorlevel, it will
check the other task to see if there's carrier present. If carrier is present
in the other line, it will wait until carrier is gone. If not, it will execute
the reset or exit to dos with an errorlevel. That way it will not hangup to
users on the other line.
At this point is when the BBSctrl will make a reset at any time. There is a
solution to this. BBSctrl may check if there is a semaphore file. If not it
will reset the system. In case that there is a semaphore, BBSctrl will wait
the time giving at the /m parameter, up to the total time giving with the
parameter /v.
BBSctrl is optimize so it will not use almost any CPU time, anyhow it will
use up to the 10% of CPU's total time, which is not a significant time.
Running
-------
BBSCTRL takes the following parameters:
/pxxx Serial port where XXX is the serial port to control (hex address)
/txxx Time to count in minutes
/nl No disk log
/o Starts as hidden task
/exxx Exit with errorlevel xxx instead of making a reset
/s:xxx If xxx file is found, it will not exit
/mxxx Time to add if a semaphore is found
/vxxx Maximum of time to add if a semaphore is found
Samples:
Command : BBSctrl /p3f8 /t60
Comment : Controls port 3f8 and it will reset the system in 60 minutes
: if no carrier if found.
Command : BBSctrl /p3f8 /t60 /2e8
Comment : Controls port 3f8 and 2e8, and it will reset the system in
: 60 minutes if no carrier is found.
Command : BBSctrl /p3f8 /t60 /s:c:\ra\bbsctrl.loc /m15 /v3
Comment : Controls port 3f8 and 2e8 and it will reset the system in
: 60 minutes if no carrier if found in one line.
: If c:\ra\bbsctrl.loc is found, it will add 15 minutes to the
: waiting time. So on up to 3 times.
Program's keys
--------------
Once loaded the BBSctrl program you may use:
F1 - To see who many time is left before resetting at that moment
F10 - To stop the program and exit.
Installation
------------
To startup BBSctrl in DESQview, you must create a DVP with the following
data:
Writes text directly to screen.......: [N]
Displays graphics information........: [N]
Virtualize text/graphics (Y,N,T).....: [N]
Uses serial ports (Y,N,1,2)..........: [Y]
Requires floppy diskette.............: [N]
BBSctrl only uses about 35Kb of memory, and in any case needs EMS or XMS.
It is necessary to startup BBSctrl every time you startup DESQview.
Credits
-------
BBSctrl is owned by its author Jordi Mas, and it is donated to public domain.
This soft has been programmed on spare time using Turbo C 2.0 and DESQview
API Toolkit for C.
From here I will like to thank to the following people for their help testing
this program: Efraim Bayarri (2:343/105), Richard W. Burton (2:343/117),
Miquel Piulats (2:343/113), Jose Gonzalvo (2:343/129). Special thanks to
Richard W. Burton for the Spanish to English documentation translation and
to Rosario Saavedra for her sexual support.
DESQview, DESQview-386, DESQview/X are trademarks of Quarterdeck Office
Systems.
For any comment, program error report, ideas for the next version, or just if
you use this program and it works fine, you may write to:
Jordi Mas
Fidonet 2:343/121
RedBBS 57:101/4
PARADISE_BCN 34-3-4432190/1